package de.Torgenizer.persistence.POJO;

import java.awt.Color;

public class Mittarbeiter {
	
	private String firstName;
	private String lastname;
	private Position position;
	private Color color;
	
	
	public void setPosition(Position pos){
		this.position = pos;
		if(this.position == Position.Anästhesist){
			color = Color.red;
		}
	}
	
	public Position getPosition(){
		return this.position;
	}
	
	public String getFirstName() {
		return firstName;
	}




	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}




	public String getLastname() {
		return lastname;
	}




	public void setLastname(String lastname) {
		this.lastname = lastname;
	}




	public Mittarbeiter(String firstname, String lastname, Position position){
		this.setFirstName(firstname);
		this.setLastname(lastname);
		this.setPosition(position);
	}
	
	public Mittarbeiter(String firstname, String lastname){
		this.setFirstName(firstname);
		this.setLastname(lastname);
	}
	
	
	public String toString(){
		return this.firstName + " " + this.lastname;
	}

}
